<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>添加助管信息</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
    <link href="css/style.css" rel="stylesheet">
    <script type="text/javascript" src="js/dist/jquery-2.2.4.js"></script>
    <script type="text/javascript" src="js/dist/bootstrap.min.js"></script>
    <script type="text/javascript" src="js/dist/vue.js"></script>
    <script type="text/javascript" src="js/common/checkUser.js"></script>
    <script>
    $(document).ready(function() {
        //do something
        // checkUser();
    })
    </script>
    <style type="text/css">
    /*body{
        height: 100%;
    }*/
    /* .ifm-box{
            height: 40%;
            padding: 5px;
            overflow: auto;
            border-top:2 solid grey;
        }*/
    </style>
</head>
<!-- <body onLoad="checkUser('iframe')"> -->

<body>
    <div id="main-data" class="" style="max-height: 400px;overflow: auto;" v-cloak>
        <div class="panel panel-default">
            <div class="panel-heading">审核助管信息</div>
            <div class="panel-body">
                <div class="row">
                    <div class="col-sm-10">
                        <div class="col-sm-4">
                            <span>审核状态：</span>
                            <select v-model="query_type" class="form-control form-select" name="status">
                                <option v-bind:value="sta.type" v-for="sta in status_action">{{ sta.statusName }}</option>
                                <option v-bind:value="" >全部</option>

                            </select>
                        </div>
                        <div class="col-sm-4 dropdown">
                            <span>年月：</span>
                            <button type="button" class="btn btn-default dropdown-toggle btn-dropdown" data-toggle="dropdown">
                                <span class="caret"></span>
                            </button>
                            <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
                                <li v-on:click="checkAllMonth">
                                    <div class="checkbox">
                                        <label>
                                            <input type="checkbox" v-model="check_Allmonth">
                                            <span>全部</span>
                                        </label>
                                    </div>
                                </li>
                                <li role="presentation" v-for="month in dates">
                                    <div class="checkbox">
                                        <label>
                                            <input type="checkbox" v-model="check_month" v-bind:value='month'>
                                            <span>{{ month }}</span>
                                        </label>
                                    </div>
                                </li>
                            </ul>
                        </div>
                        <div class="col-sm-4 dropdown">
                            <span> 部门/学院：</span>
                            <button type="button" class="btn btn-default dropdown-toggle btn-dropdown" data-toggle="dropdown">
                                <span class="caret"></span>
                            </button>
                            <ul class="dropdown-menu dropdown-menu-4" role="menu" aria-labelledby="dropdownMenu1">
                                <li v-on:click="checkAllDept">
                                    <div class="checkbox">
                                        <label>
                                            <input type="checkbox" v-model="check_AllDept">
                                            <span>全部</span>
                                        </label>
                                    </div>
                                </li>
                                <li role="presentation" v-for="dept in depts">
                                    <div class="checkbox">
                                        <label>
                                            <input type="checkbox" v-model="check_deptId" v-bind:value='dept.deptId'>
                                            <span>{{dept.deptId}}{{ dept.deptName }}</span>
                                        </label>
                                    </div>
                                </li>
                            </ul>
                        </div>
                        <!-- <div>
                            已选月份：{{check_month}} ;已选部门：{{check_deptId}}
                        </div> -->
                    </div>
                    <div class="col-sm-2">
                        <button class="btn btn-default" v-on:click="queryData('all')">查询</button>
                    </div>
                </div>
                <table class="table table-bordered mt-10">
                    <tr>
                        <th>选择</th>
                        <th>学号</th>
                        <th>姓名</th>
                        <th>设岗单位</th>
                        <th>所在银行</th>
                        <th>银行卡号</th>
                        <th>申请年月</th>
                        <th>申请金额</th>
                        <th>备注</th>
                        <th>状态</th>
                    </tr>
                    <tr v-for="item in items" track-by="$index">
                        <td>
                            <input type="checkbox" v-model="check_id" v-bind:value='item.id'>
                        </td>
                        <td>{{item.stuId}}</td>
                        <td>{{item.studentName}}</td>
                        <td>{{item.deptName}}</td>
                        <td>{{item.bankName}}</td>
                        <td>{{item.bankNo}}</td>
                        <td>{{item.helpDate}}</td>
                        <td>{{item.money}}</td>
                        <td>{{item.remark}}</td>
                        <td>{{item.statusCodeName}}</td>
                    </tr>
                    <tr>
                        <td colspan="10">
                            <input type="checkbox" @click="checkIdAll" v-model="check_idAll">全选
                            <!-- <p>已选信息编号：{{check_id}}</p> -->
                        </td>
                    </tr>
                    <!-- <span>  {{check_id}}</span> -->
                </table>
                <!-- 分页 -->
                <nav>
                    <ul class="pagination">
                        <li v-bind:class="{'disabled': page.disabled, 'active': page.active }" v-for="page in pages"><a v-on:click="submitPage(page.content,page.disabled)">{{page.content}}</a></li>
                    </ul>
                </nav>
                <div>
                    <button class="btn btn-default" v-on:click="submitShenhe('agree')">同意</button>
                    <button class="btn btn-default" v-on:click="submitShenhe">拒绝</button>
                </div>
            </div>
        </div>
    </div>
    <hr>
    <div class="ifm-box" id="ifm-box">
        <iframe id="myiframe" src="./subform-shenheStatus.html" frameborder="0" height="500px" scrolling="yes"></iframe>
    </div>
</body>
<script type="text/javascript" data-main="js/shenhe.js" src="js/dist/require.js"></script>
<script type="text/javascript">
// var height = window.screen.height;
// console.log(height);
// $('#myiframe').height = height * 0.4;
// console.log($('#ifm-box').height());
// ifm = document.getElementById("myiframe");
// ifm.height=$('#ifm-box').height()
</script>

</html>
